package com.baizhi.springbootshiro.service;

import com.baizhi.springbootshiro.entity.Perms;
import com.baizhi.springbootshiro.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author chenzy
 * @email ${email}
 * @date 2020-10-08 01:09:08
 */
public interface PermsService extends IService<Perms> {
    /**
     * 根据role获取权限
     *
     * @param role
     * @return
     */
    List<Perms> getPermsByRole(Role role);

    /**
     * 根据roles 获取权限
     *
     * @param roles
     * @return
     */
    List<Perms> getPermsByRoles(List<Role> roles);

    /**
     * 根据roleIds获取权限
     *
     * @param roleIds
     * @return
     */
    List<Perms> getPermsByRoleIds(List<String> roleIds);


}

